#pragma once
#include "path_component.h"
#include "component_condition.h"

class component_interval: public path_component
{
public:
	component_interval(void);
	~component_interval(void);
	void draw(float* start, float* end, float start_dist, float end_dist, float* delta);
	virtual void draw_element(float* position, float* delta, float* direction) = 0;
	void draw_corner(float *previous_point, float *cur_point, 
						float* previous_delta, float *cur_delta, 
						float* center_point, float corner_radius);
};

